<!--
 * @Author: chenr 526963089@qq.com
 * @Date: 2023-02-15 14:17:40
 * @LastEditors: chenr 526963089@qq.com
 * @LastEditTime: 2023-02-17 17:18:35
 * @Description: 页面布局
-->
<template>
  <div>
    <Menus :data-source="menus" />
    <RouterView></RouterView>
  </div>
</template>

<script lang="ts" setup>
import Menus from '@/components/Menus/index.vue';
import { useRouterStore } from '@official/stores/async-routers';
import { getCurrentLevelRouters } from '@/router/generatorRouter';
const { addRouters } = useRouterStore();
const menus = getCurrentLevelRouters(addRouters || []);
</script>
<style scoped lang="less"></style>
